<template>
	<label :style="{color:color,fontSize:fontSize}">1111</label>
</template>

<script>
	import CommonUtils from "../js/common/common-utils.js";
	export default {
		data() {
			return {
				color: null,
				fontSize: 18
			}

		},
		methods: {
			RandomColor() {
				var r = Math.floor(Math.random() * 256);
				var g = Math.floor(Math.random() * 256);
				var b = Math.floor(Math.random() * 256);
				return "rgb(" + r + ',' + g + ',' + b + ")";
			},

			RandomColor2() {
				return "hsl(" +
					Math.round(Math.random() * 360) + "," +
					Math.round(Math.random() * 100) + '%,' +
					Math.round(Math.random() * 80) + '%)';
			},
			Normal(mean, sigma) {
				var u = 0.0,
					v = 0.0,
					w = 0.0,
					c = 0.0;
				do {
					//获得两个（-1,1）的独立随机变量
					u = Math.random() * 2 - 1.0;
					v = Math.random() * 2 - 1.0;
					w = u * u + v * v;
				} while (w == 0.0 || w >= 1.0)
				c = Math.sqrt((-2 * Math.log(w)) / w);
				return mean + u * c * sigma;
			}





		}

	}
</script>

<style>
</style>
